package cn.flightcloud.boot.commom.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BaseService<T, ID extends Serializable> {

	T get(ID id);

	boolean exists(ID id);

	<S extends T> S save(S entity);

	List<T> findAll();

	Page<T> findAll(Pageable pageable);

	void delete(ID id);

	void delete(T t);

}
